home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
disk
/
bakup
/
mrbk220.lha
/
Rexx
/
utilities.mrbk
< prev
next >
Wrap
Text File
|
1991-01-12
|
1KB
|
63 lines
/* utilities.mrbk */
/* This ARexx program is a simple-minded script to invoke MRBackup's
* file utilities, then terminate.
*/
signal on ERROR
signal on BREAK_C
options results
if ~(Show('P', 'MRBackup_#1')) then do
say "You must run MRBackup first. With a little work, you could"
say "get this ARexx script to do it for you."
exit 1
end
address "MRBackup_#1"
poptofront
backpath = "DF0:"
setbackpath backpath
if rc ~= 0 then do
say "Failed to set backup path to " || backpath
exit 1
end
homepath = "DH0:"
sethomepath homepath
if rc ~= 0 then do
say "Failed to set home path to " || homepath
exit 1
end
utilities
if rc ~= 0 then do
say "Utilities failed; error code: " || rc
end
quit
exit rc
/*------------------------------------------------------------------*/
break_c:
say "*** Control-C recieved. Stopped by user. ***"
exit 5
/*------------------------------------------------------------------*/
error:
say "Error"
exit 6
/*------------------------------------------------------------------*/